package com.xhs.service.impl;


import com.xhs.dao.SmsLogDao;
import com.xhs.entity.SmsLog;
import com.xhs.service.intf.SmsLogService;
import com.xhs.utils.RUtil;
import com.xhs.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class SmsLogServiceImpl implements SmsLogService {

    @Autowired
    private SmsLogDao logDao;

    @Override
    public R save(SmsLog smsLog) {
        if (logDao.insert(smsLog)>0){
            return RUtil.ok("OK",null);
        }
        return RUtil.fail("SmsLog添加失败");
    }

    @Override
    public R query(String phone) {
        return null;
    }
}
